#include "test.hpp"

// 测试struct{}初始化
void Test1()
{
    Person stu1 = {"张三", 14, "男"};
    std::cout << "姓名: " << stu1._name.c_str() << " 年龄: " << stu1._age << " 性别: " << stu1._sex.c_str() << std::endl;
}

void Test2()
{
    Student stu1 = {"张三", 14, "男"};
    // std::cout << "姓名: " << stu1._name.c_str() << " 年龄: " << stu1._age << " 性别: " << stu1._sex.c_str() << std::endl;
    Teacher tea1 = {"王五", 30, "男"};
    std::cout << "姓名: " << tea1._name.c_str() << " 年龄: " << tea1._age << " 性别: " << tea1._sex.c_str() << std::endl;

}

int main()
{
    Test1();
    return 0;
}